<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.pimpas.net/web/jsf" prefix="pimp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html>
	<head>
	<title>AJAX POPULATE AUTO UPDATE TESTE</title>
	</head>
	<body>
		<h:form>
			<pimp:group title="AJAX Populate Auto Update">
				<pimp:span noId="true">
						<h:outputLabel for="valueObj">
							<h:outputText value="Value: "></h:outputText>
						</h:outputLabel>
						<pimp:span id="valueObj"><h:outputText value="#{mbAutoUpdate.value}"/></pimp:span>
				</pimp:span>
				<pimp:ajaxPopulateAutoUpdate render="valueObj" timer="3000"></pimp:ajaxPopulateAutoUpdate>
				<pimp:simpleTag tag="hr"></pimp:simpleTag>
				<pimp:span noId="true">
						<h:outputLabel for="value2Obj">
							<h:outputText value="Value: "></h:outputText>
						</h:outputLabel>
						<pimp:span id="value2Obj"><h:outputText value="#{mbAutoUpdate.value}"/></pimp:span>
				</pimp:span>
				<pimp:ajaxPopulateAutoUpdate render="value2Obj" timer="5000" immediate="true"></pimp:ajaxPopulateAutoUpdate>
			</pimp:group>
			<pimp:ajaxPoolSize value="10"></pimp:ajaxPoolSize>
		</h:form>
	</body>
	</html>
</f:view>